<template>
  <div id="ioio1">
    <div class="ioiS">
      <div class="cc" @click="clickX(ii.id)">
        <h1>{{ ii.title }}</h1>
        <p>点击数量</p>
        <img :src="ii.cover_img" />
        <div class="dic">
          <span>{{ ii.id }}点击报名</span>
          <span>{{ ii.price }}</span>
        </div>
      </div>
    </div>
    <!-- {{ii}} -->
  </div>
</template>
<script>
export default {
  props: ["ii"],
  data() {
    return {

    }
  },
  methods:{
    clickX(id){
        this.$router.push(`/xingqing?cid=${id}`)
    }
  }
};
</script>
<style lang="scss" scoped>
.ioiS {
  width: 100%;
  background-color: white;
  margin-top: 10px;
  p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.3);
  }
  .dic {
    display: flex;
    justify-content: space-between;
    span:nth-child(1){
        font-size: 12px;
        color: rgba(0, 0, 0, 0.3);
    }
    span:nth-child(2){
        font-size: 12px;
        color: red;
    }
  }
  img {
    width: 50px;
    height: 50px;
  }
}
.cc{
    padding: 10px;
}
</style>